package com.gwnet.shop.domain;

import com.gwnet.common.mybatis.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.util.List;

/**
 * 商品信息对象 shop_goods
 * 
 * @author ruoyi
 * @date 2024-07-19
 */
public class ShopGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增id */
    private Long id;

    /** 商户 */
    private Long tenantId;

    /** 标题 */
    private String name;

    /** 库存数量 */
    private Long stockQuantity;

    /** 原价(参考价格) */
    private Double originalPrice;

    /** 销售价格 */
    private Double sellPrice;


    /** 主图 */
    private String showUrl;

    /** 轮播图 */
    private String bannerUrl;

    /** 详情图片 */
    private String detailUrl;

    /** 内容 */
    private String content;

    /** 最低起送数量 */
    private Long minQuantity;

    /** 销售状态 */
    private String status;

    /** 收藏数量 */
    private Integer collectnum;

    /** 分类 */
    private Long typeId;

    /** 排序数字 */
    private Long sortId;

    /** 全局排序 */
    private Long globalSortId;

    /** 备注 */
    private String remark;

    private List<GoodsSpec> goodsSpecs;

    private List<SpecGroup> specGroups;

    public List<GoodsSpec> getGoodsSpecs() {
        return goodsSpecs;
    }

    public void setGoodsSpecs(List<GoodsSpec> goodsSpecs) {
        this.goodsSpecs = goodsSpecs;
    }


    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTenantId(Long tenantId) 
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId() 
    {
        return tenantId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setStockQuantity(Long stockQuantity) 
    {
        this.stockQuantity = stockQuantity;
    }

    public Long getStockQuantity() 
    {
        return stockQuantity;
    }

    public Double getOriginalPrice() {
        return originalPrice;
    }

    public void setOriginalPrice(Double originalPrice) {
        this.originalPrice = originalPrice;
    }

    public Double getSellPrice() {
        return sellPrice;
    }

    public void setSellPrice(Double sellPrice) {
        this.sellPrice = sellPrice;
    }


    public void setShowUrl(String showUrl)
    {
        this.showUrl = showUrl;
    }

    public String getShowUrl() 
    {
        return showUrl;
    }
    public void setBannerUrl(String bannerUrl) 
    {
        this.bannerUrl = bannerUrl;
    }

    public String getBannerUrl() 
    {
        return bannerUrl;
    }
    public void setDetailUrl(String detailUrl) 
    {
        this.detailUrl = detailUrl;
    }

    public String getDetailUrl() 
    {
        return detailUrl;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public Long getMinQuantity() {
        return minQuantity;
    }

    public void setMinQuantity(Long minQuantity) {
        this.minQuantity = minQuantity;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setTypeId(Long typeId) 
    {
        this.typeId = typeId;
    }

    public Integer getCollectnum() {
        return collectnum;
    }

    public void setCollectnum(Integer collectnum) {
        this.collectnum = collectnum;
    }

    public Long getTypeId()
    {
        return typeId;
    }
    public void setSortId(Long sortId) 
    {
        this.sortId = sortId;
    }

    public Long getSortId() 
    {
        return sortId;
    }
    public void setGlobalSortId(Long globalSortId) 
    {
        this.globalSortId = globalSortId;
    }

    public Long getGlobalSortId() 
    {
        return globalSortId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }



    public List<SpecGroup> getSpecGroups() {
        return specGroups;
    }

    public void setSpecGroups(List<SpecGroup> specGroups) {
        this.specGroups = specGroups;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tenantId", getTenantId())
            .append("name", getName())
            .append("stockQuantity", getStockQuantity())
            .append("sellPrice", getSellPrice())
            .append("showUrl", getShowUrl())
            .append("bannerUrl", getBannerUrl())
            .append("detailUrl", getDetailUrl())
            .append("content", getContent())
            .append("status", getStatus())
            .append("typeId", getTypeId())
            .append("sortId", getSortId())
            .append("globalSortId", getGlobalSortId())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
